import {Config} from "../..//utils/config.js";
import {httpReq} from "../..//utils/api.js";

class Shopping {
  getList(that,isSelect = 0){
    let params ={};
    params.url = Config.shopping;
    params.data = {isSelect};
    httpReq(params).then(ret=>{
      //把数据传给视图，还可以改变属性值
      that.setData({
        goods: ret.data
      });
    });
  }
}
export default Shopping;